import { useLocation, useSearchParams } from "react-router-dom";

export default function About() {
  const [search] = useSearchParams();
  const location = useLocation();

  console.log("About search", search);
  console.log("About location", location);

  return (
    <div>
      <h2>About</h2>
      <p>A: {search.get("a")}</p>
      <p>B: {search.get("b")}</p>
    </div>
  );
}
